import path from './path';
import http from './http';
export default{
    // 整改任务报备
    one(id){
        return http.get(path.report+'/'+id);
    },
    all(term={}){
        return http.post(path.report+`?pageNum=${term.pageNum}&pageSize=${term.pageSize}`, {data:JSON.stringify(term.FilingKey)})
    },
    add(data){
        return http.post(path.report,data);
    },
    edit(data,id){
        return http.put(path.report+'/'+id,data)
    },
    del(id){
        return http.delete(path.report+'/'+id)
    }
}